extends CanvasLayer


func print_text(text):
	$Control.mouse_filter = $Control.MOUSE_FILTER_STOP
	var tween = get_tree().create_tween()
	tween.tween_property($Control, "modulate", Color("ffffff"), 0.2)
	%RichTextLabel.text += "		"+str(text)+"\n"
	print(text)
	await $Control.on_click
	$Control.mouse_filter = $Control.MOUSE_FILTER_IGNORE
	tween = get_tree().create_tween()
	tween.tween_property($Control, "modulate", Color("ffffff00"), 1)
